package com.study.talk.netty.message.response;

import com.study.talk.entity.UserInfo;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

import java.util.List;

/**
 *  发出邀请加入群聊后 发出请求客户端的消息回响
 */



public class InviteGroupSelfResponse extends TalkMessage {


    //("成功发出邀请用户")
    private List<UserInfo> successUser;

    //("发出邀请失败用户")
    private List<UserInfo> failedUser;

    //("群聊名称")
    private String groupName;

    //("群聊id")
    private Integer groupId;

    @Override
    public byte getType() {
        return MessageType.INVITE_GROUP_SELF_RESPONSE;
    }

    public InviteGroupSelfResponse(List<UserInfo> successUser, List<UserInfo> failedUser, String groupName, Integer groupId) {
        this.successUser = successUser;
        this.failedUser = failedUser;
        this.groupName = groupName;
        this.groupId = groupId;
    }

    public InviteGroupSelfResponse() {
    }

    public List<UserInfo> getSuccessUser() {
        return successUser;
    }

    public void setSuccessUser(List<UserInfo> successUser) {
        this.successUser = successUser;
    }

    public List<UserInfo> getFailedUser() {
        return failedUser;
    }

    public void setFailedUser(List<UserInfo> failedUser) {
        this.failedUser = failedUser;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }
}
